package org.poem.incrementhandle;

import org.poem.CanalClientHeadEntityVO;
import org.poem.exec.annotation.CanalHandle;
import org.poem.handler.increment.AbstractClientIncrementHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @author poem
 */
@Service
@CanalHandle
public class DemoCanalClientIncrementHandler extends AbstractClientIncrementHandler {

    private static final Logger logger = LoggerFactory.getLogger(DemoCanalClientIncrementHandler.class);

    /**
     * @param canalClientHeadEntityVO 数据
     */
    @Override
    protected void delete(CanalClientHeadEntityVO canalClientHeadEntityVO) {
//        logger.info("Delete ");
//        logger.info(JSONObject.toJSONString(canalClientHeadEntity));
    }

    /**
     * @param canalClientHeadEntityVO 数据
     */
    @Override
    protected void update(CanalClientHeadEntityVO canalClientHeadEntityVO) {
//        logger.info("update ");
//        logger.info(JSONObject.toJSONString(canalClientHeadEntity));
    }

    /**
     * @param canalClientHeadEntityVO 数据
     */
    @Override
    protected void insert(CanalClientHeadEntityVO canalClientHeadEntityVO) {
//        logger.info("insert ");
//        logger.info(JSONObject.toJSONString(canalClientHeadEntity));
    }


    /**
     * 新增表
     * @param canalClientHeadEntityVO
     */
    @Override
    protected void createTable(CanalClientHeadEntityVO canalClientHeadEntityVO) {
//        logger.info("createTable ");
//        logger.info(JSONObject.toJSONString(canalClientHeadEntity));
    }

    /**
     * 删除表
     */
    @Override
    protected void deleteTable(CanalClientHeadEntityVO canalClientHeadEntityVO){
//        logger.info("deleteTable ");
//        logger.info(JSONObject.toJSONString(canalClientHeadEntity));
    }

}
